﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tesseract;
using System.Drawing;
using System.Text.RegularExpressions;

namespace TesseractDemo
{
    class Program
    {
        /// <summary>
        /// 需要安装tesserract安装包
        /// http://ncy.bxbgsc.com/tesserract.zip
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            SimpleEngCaptcha sec = new SimpleEngCaptcha();
            var str = sec.FromFile("4.png");
            Console.WriteLine(str);
            var res = sec.SimpleArithmetic(str);
            Console.WriteLine("result:" + res);
            Console.WriteLine("识别完成!");
            Console.ReadLine();
        }
    }
}
